/**
 * 查询对象类型
 */
export interface CategoryQuery extends PageQuery {
  title?: string;
  type?: number;
  is_hid?: number;
}

/**
 * 分页对象
 */
export interface CategoryPage {
  id?: number;
  title?: string;
  slug?: string;
  type?: number;
  url?: number;
  pid?: number;
  is_hid?: number;
  sort?: number;
  created_at?: Date;
}

/**
 * 用户表单类型
 */
export interface CategoryForm {
  id?: number;
  pid?: number;
  title?: string;
  type?: number;
  url?: number;
  slug?: string;
  sort?: number;
  is_hid?: number;
}

export interface CategoryOptions {
  value?: number,
  label?: string,
  children?: CategoryOptions[]
}
